/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package pe.edu.pucp.TrabajoGrupal.Classes;

/**
 *
 * @author LUIS
 */

public class Session {
    User UserData = null;
    private Session(){}
    public static Session single = new Session();
    static public Session getInstance(){ return single;}
    public User getUserData() throws Exception{
        if( UserData == null )
            throw  new Exception("The user is not found");        
        return UserData;
    }
    public void setUserData(User user){
        UserData = user;
    }
}
